package com.sodimac.v2s.business
{
 	import com.adobe.cairngorm.business.ServiceLocator;
 	
 	import mx.rpc.AsyncToken;
 	import mx.rpc.IResponder;
 	import mx.rpc.soap.WebService;	
	
	public class SfpDelegate
	{

		private var service:WebService;
		private var responder:IResponder;		
		
		public function SfpDelegate(responder:IResponder)
		{
			this.service = ServiceLocator.getInstance().getWebService("wsSolicitudFacturaProforma");
			this.responder = responder;
		}

 		public function ConsultaPedidoPais(cabecera:Object, idPais:String, idPedidoCorp:Number, idEmpresa:String):void
		{
			trace("SfpDelegate.ConsultaPedidoPais ("+ idPais + " "+ idPedidoCorp +  " "+ idEmpresa +")");
			
			var payload:Object = new Object();
			payload.idPais = idPais;
			payload.idEmpresa = idEmpresa;
			payload.idPedidoCorp = idPedidoCorp;
			
			var call:AsyncToken = service.consultaPedidoPais(cabecera, payload);
			call.addResponder( responder );
		} 

	}
}

	